import request from '@/utils/request'

// 查询非遗项目收藏列表
export function listMarks(query) {
  return request({
    url: '/books/marks/list',
    method: 'get',
    params: query
  })
}

// 查询非遗项目收藏详细
export function getMarks(marksId) {
  return request({
    url: '/books/marks/' + marksId,
    method: 'get'
  })
}

// 新增非遗项目收藏
export function addMarks(data) {
  return request({
    url: '/books/marks',
    method: 'post',
    data: data
  })
}

// 修改非遗项目收藏
export function updateMarks(data) {
  return request({
    url: '/books/marks',
    method: 'put',
    data: data
  })
}

// 删除非遗项目收藏
export function delMarks(marksId) {
  return request({
    url: '/books/marks/' + marksId,
    method: 'delete'
  })
}
